//
//  Person.m
//  62.block本质
//
//  Created by 中创 on 2019/12/24.
//  Copyright © 2019 LS. All rights reserved.
//

#import "Person.h"



@implementation Person

- (void)testBlock{
    self.block();
}

- (instancetype)initWithName:(NSString *)name
{
    self = [super init];
    if (self) {
        self.name = name;
        self.block = ^{
            NSLog(@"%@", self.name);
        };
    }
    return self;
}

@end
